package com.cheng.entity;

import com.baomidou.mybatisplus.enums.IdType;

import java.math.BigInteger;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author Cheng
 * @since 2019-07-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("qd_tieba")
public class Tieba extends Model<Tieba> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private BigInteger id;
//    这里如果跟数据库对应是int 前台传的字符串报错将不会被try...catch到
    private String qq;
    private String taskname;
    private String bduss;
    private String forumList;
    private Date creatTime;
    private Date visitTime;
    private Date finishTime;
    private Integer retryCount;
    private Integer visitCount;
    private Integer validity;
    private String amount;
    private Integer points;
    private String ip;
    private Integer del;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
